package com.tuanzi.loan.workflow.service;

import java.util.List;

import com.tuanzi.loan.workflow.entity.FormBinding;

/**
 * @author Ray
 * @date 2018/01/16
 */
public interface FormBindingService {

	List<FormBinding> findAllByProcDefId(String procDefId);

	FormBinding findByProcDefIdAndActId(String procDefId, String actId);

	void deleteByProcDefId(String procDefId);

	//
	// /**
	// * 删除
	// * @param request
	// *
	// */
	// BaseResponse<String> delById(FormBindingDeleteRequest request);

	/**
	 * 同步新版本的表单绑定
	 *
	 * @param oldProcDefId
	 * @param newProcDefId
	 */
	void synchronizeFormBinding(String oldProcDefId, String newProcDefId);


	FormBinding saveOrUpdate(FormBinding formBinding);
	//
	// /**
	// * 职责：流程定义绑定表单url
	// * @param request
	// */
	// BaseResponse<String> saveOrUpdateFormBinding(FormBindingSaveRequest request);
	//
	// /**
	// * 根据流程定义id和表单编号“opinionList”，查找表单绑定信息
	// * @param request
	// */
	// BaseResponse<List<FormBindingQueryResponse>>
	// findByProcDefIdAndFormCode(FormBindingQueryRequest request);

}
